package zhibi.cms.service;

import com.github.pagehelper.PageInfo;
import zhibi.cms.domain.Pic;
import zhibi.cms.extra.pojo.PicPo;
import zhibi.frame.domain.Page;
import zhibi.frame.mybatis.example.Example;
import zhibi.frame.service.BaseService;

import java.util.List;

public interface PicService extends BaseService<Pic> {

    /**
     * 通过条件查找
     *
     * @param example
     * @param page
     * @return
     */
    PageInfo<PicPo> selectPoByExample(Example example, Page page);

    /**
     * 通过栏目和图片标志得到一张图片
     * @param siteFlag
     * @param picFlag
     * @return
     */
    PicPo selectBySiteFlagAndFlag(String siteFlag,String picFlag);
}
